<#include "common/main.html">
<#macro bodyId>statistics-agent</#macro>
<#macro content>


<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main ty-common-page">
    <h1 class="page-header">注册用户列表
        <div class="btns">
        </div>
    </h1>

    <div class="tool-bar">
        <div class="filter">
            <form action="" method="get" class="J_filterForm" id="account-form">
                <div class="form-group">

                    <div class="col-sm-12">

                        <span class="label-text">用户ID：&nbsp; &nbsp;&nbsp;</span>
                        <div class="col7">
                            <input class="form-control" name="id"  value="${queryDto.id}"/>
                        </div>

                        <span class="label-text">渠道经理ID：</span>
                        <div class="col7">
                            <input class="form-control" name="managerAccountId"  value="${queryDto.managerAccountId}" />
                        </div>

                        <span class="label-text">微信昵称/姓名：</span>
                        <div class="col7">
                            <input class="form-control" name="name"  value="${queryDto.name}" />
                        </div>

                        <span class="label-text">注册手机号：</span>
                        <div class="col7">
                            <input class="form-control" name="phoneNumber" value="${queryDto.phoneNumber}" />
                        </div>
                        <div></div>
                        <br/>

                        <span class="label-text">用户类型：</span>
                        <div class="col7">
                            <select class="form-control" name="type">
                                <option value="">请选择</option>
                                <option value="1" <#if queryDto.type=='1'>selected="true"</#if>>注册用户</option>
                                <option value="2" <#if queryDto.type=='2'>selected="true"</#if>>渠道经理</option>
                                <option value="100" <#if queryDto.type=='100'>selected="true"</#if>>分享达人</option>
                            </select>
                        </div>
                        <span class="label-text">开始时间：</span>
                        <div class="col6">
                            <input class="form-control J_startDate" name="startTimeStr" value="${queryDto.startTimeStr}" >
                        </div>

                        <span class="label-text">结束时间：&nbsp;&nbsp;&nbsp;&nbsp;</span>
                        <div class="col6">
                            <input class="form-control J_endDate" name="endTimeStr" value="${queryDto.endTimeStr}" >
                        </div>


                    <!--<button type="submit" class="btn btn-success J_getExcel"-->
                            <!--data-action="${rc.contextPath}/account/export">注册用户列表Excel-->
                    <!--</button>-->
                    <button type="submit" class="btn btn-success J_search"
                            data-action="${rc.contextPath}/account/list">查询
                    </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="table-responsive">
        <table class="table table-striped">
            <thead>
            <tr>
                <th>用户ID</th>
                <th>渠道经理ID</th>
                <th>微信昵称/姓名</th>
                <th>注册手机号</th>
                <th>用户类型</th>
                <th class="date">创建日期</th>
                <th class="operation">操作</th>
            </tr>
            </thead>
            <tbody>
                <#if accountList??>
                    <#list accountList as account>
                    <tr>
                        <td>${account.id}</td>
                        <td>${account.managerAccountId}</td>
                        <td>${account.name}</td>
                        <td>${account.phoneNumber}</td>
                        <td>${account.typeName}</td>
                        <td>${account.createTime?number?number_to_datetime?string("yyyy-MM-dd HH:mm")}</td>
                        <td class="operation">
                            <div class="dropdown">
                                <a  class="J_edit"  href="${rc.contextPath}/account/gotoUpdate?id=${account.id}">修改 </a>
                            </div>
                        </td>

                    </tr>
                    </#list>
                </#if>
            </tbody>
        </table>
    </div>
    <#include "common/page.html">
</div>

<script>
    var config = {}
</script>
</#macro>
<script>

</script>